package main

import (
	"fmt"
)

func reverseBits(num uint32) uint32 {
	//fmt.Printf("%032b\n", num)
	var m uint32 = 1
	var x uint32 = 0
	for i := 0; i < 32; i++ {
		x = x << 1
		x += num & m
		num = num >> 1
	}
	//fmt.Printf("%032b\n", x)
	return x
}

func main() {
	fmt.Println(reverseBits(43261596))
}
